package com.dog.basics.netty;


import lombok.extern.log4j.Log4j2;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.context.annotation.ComponentScan;

/**
 * @author crossoverJie
 */
@SpringBootApplication
@ComponentScan(basePackages = {"com.dog.basics"})
@Log4j2
public class NettyServerApplication extends SpringBootServletInitializer {

	public static void main(String[] args) {
        SpringApplication.run(NettyServerApplication.class, args);
		log.info("启动 Server 成功");
	}
	@Override
	protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
		return builder.sources(NettyServerApplication.class);
	}

}